package com.example.shellcollector.MyAnimate;

import android.content.Context;
import android.graphics.Typeface;
import android.util.AttributeSet;
import android.widget.TextView;

import androidx.preference.Preference;
import androidx.preference.PreferenceViewHolder;

public class MyPreference extends Preference {
    public MyPreference(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public void onBindViewHolder(PreferenceViewHolder holder) {
        super.onBindViewHolder(holder);
        TextView title = (TextView)holder.findViewById(android.R.id.title);
        title.setTextSize(20);
        TextView summary = (TextView)holder.findViewById(android.R.id.summary);
        summary.setTypeface(Typeface.SERIF);
        summary.setPadding(0,10,0,5);
        summary.setTextSize(18);


    }
}
